package com.csr.csrcheck.service.impl;

import com.csr.csrcheck.mapper.Actual_controllerMapper;
import com.csr.csrcheck.pojo.Actual_controller;
import com.csr.csrcheck.service.Actual_controllerService;
import com.csr.csrcheck.service.ex.Actual_controllerException;
import com.csr.csrcheck.service.ex.CompanyException;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Actual_controllerServiceImpl implements Actual_controllerService {
    @Resource
    private Actual_controllerMapper actual_controllerMapper;

    public List<Actual_controller> getActual_controllerlist() {
        List<Actual_controller> list = this.actual_controllerMapper.getActual_controllerlist();
        if (list == null)
            throw new Actual_controllerException("");
        return list;
    }

    public List<Actual_controller> list() {
        List<Actual_controller> list = this.actual_controllerMapper.list();
        if (list == null)
            throw new CompanyException("");
        return list;
    }
}